package vn.edu.saigontech.ncms.web;

import vn.edu.saigontech.ncms.service.OfferingService;
import vn.edu.saigontech.ncms.service.ReceiptService;
import vn.edu.saigontech.ncms.service.StudentService;

@SuppressWarnings("serial")
public class HomeAction extends BaseAction {

	@Override
	public String execute() {	
		REQUEST().setAttribute("students", StudentService.INSTANCE.findRecently());
		REQUEST().setAttribute("offerings", OfferingService.INSTANCE.findRecently());
		REQUEST().setAttribute("offeringReceipts", ReceiptService.INSTANCE.findRecently());
		return SUCCESS;
	}
}